﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_WarehouseOutCost")]
    public class LKWarehouseOutCost
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private int _outId;
        /// <summary>
        /// 出库单id
        /// </summary>
        [Column("OutId")]
        public int OutId
        {
            get
            {
                return _outId;
            }
            set { _outId = value; }
        }


        private int _costId;
        /// <summary>
        /// 费用类型;
        /// </summary>
        [Column("CostId")]
        public int CostId
        {
            get
            {
                return _costId;
            }
            set { _costId = value; }
        }


        private decimal _unitPrice;
        /// <summary>
        /// 杂费单价
        /// </summary>
        [Column("UnitPrice")]
        public decimal UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set { _unitPrice = value; }
        }


        private int _unit;
        /// <summary>
        /// 单位;
        /// </summary>
        [Column("Unit")]
        public int Unit
        {
            get
            {
                return _unit;
            }
            set { _unit = value; }
        }


        private string _unitName;
        /// <summary>
        /// 单位名称
        /// </summary>
        [Column("UnitName")]
        public string UnitName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_unitName))
                    _unitName = string.Empty;
                return _unitName;
            }
            set { _unitName = value; }
        }


        private int _number;
        /// <summary>
        /// 计算数量
        /// </summary>
        [Column("Number")]
        public int Number
        {
            get
            {
                return _number;
            }
            set { _number = value; }
        }


        private decimal _amount;
        /// <summary>
        /// 金额
        /// </summary>
        [Column("Amount")]
        public decimal Amount
        {
            get
            {
                return _amount;
            }
            set { _amount = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }


    }
}

